package com.yuan.studemo.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 学生
 * </p>
 *
 * @author Yuan
 * @since 2022-05-19
 */
@Getter
@Setter
@TableName("stuinfo")
@ApiModel(value = "Stuinfo对象", description = "学生")
@ToString
public class Stuinfo implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("创建时间")
      private LocalDateTime addtime;

      @ApiModelProperty("学号")
      @Alias("学号")
      private String stuId;

      @ApiModelProperty("密码")
      @Alias("密码")
      private String password;

      @ApiModelProperty("学生姓名")
      @Alias("学生姓名")
      private String name;

      @ApiModelProperty("性别")
      @Alias("性别")
      private String sex;

      @ApiModelProperty("出生日期")
      @Alias("出生日期")
      private LocalDate birth;

      @ApiModelProperty("联系电话")
      @Alias("联系电话")
      private String phone;

      @ApiModelProperty("班级")
      @Alias("班级")
      private String grade;


}
